package com.entity;

import com.entity.AccountRole;

import java.util.Date;
import java.util.List;

public class Account {

	String accountid;//
	String accountname;//用户名，每一个具体的用户可以用户名字段不一样
	String password;//密码字段不一样
	String salt;//加密用的盐
	Integer isDelete;
	Date createDate;
	Boolean locked = Boolean.FALSE;//是否锁定

	List<AccountRole> accountRoles;

	public String getAccountid() {
		return accountid;
	}

	public void setAccountid(String accountid) {
		this.accountid = accountid;
	}

	public String getAccountname() {
		return accountname;
	}

	public void setAccountname(String accountname) {
		this.accountname = accountname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public List<AccountRole> getAccountRoles() {
		return accountRoles;
	}

	public void setAccountRoles(List<AccountRole> accountRoles) {
		this.accountRoles = accountRoles;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Boolean getLocked() {
		return locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}
	public String getCredentialsSalt() {
		return accountname + salt;
	}


}